#!/usr/bin/python3.4

import os
import time

#source =

target_dir = "/tmp/backup/"

today = target_dir + time.strftime('%Y%m%d')

now = time.strftime("%H%M%S")

comment = raw_input("Enter a comment --> ")
if len(comment) == 0:
    target = today + now + '.zip'
else:
    target = today + now + '_' + comment.replace(' ', '_') + '.zip'


if not os.path.exists(today):
    os.mkdir(today)
    print("Successfully created directory", today)


